import myaxios from  '@/mytools/myaxios'
export function VAdminUserName(userName) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/AdminUserManager/VAdmminUserName',
      method: 'get',
      params: { userName: userName },
    })
  }
  
  export function SearchPage(searchModel) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/AdminUserManager/SearchPage',
      method: 'post',
      data:searchModel
    })
  }
  export function GetAdminUserViewByUserName(userName) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/AdminUserManager/GetAdminUserViewByUserName',
      method: 'get',
      params: { userName: userName },
    })
  }

  export function AdminUserUpdate(userInfo) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/AdminUserManager/AdminUserUpdate',
      method: 'post',
      data: userInfo,
    })
  }

  export function AdminUserAdd(userInfo) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/AdminUserManager/AdminUserAdd',
      method: 'post',
      data: userInfo,
    })
  }

  export function AdminUserPwdUpdate(userName,pwd) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/AdminUserManager/AdminUserPwdUpdate',
      method: 'get',
      params: { userName: userName ,pwd:pwd},
    })
  }


  export function SearchPageRole(searchModel) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/RoleManager/SearchPage',
      method: 'post',
      data:searchModel
    })
  }
  